package com.hxzy.controller.admin.mapstruct;

import com.hxzy.controller.admin.category.req.CategoryClassAddReq;
import com.hxzy.controller.admin.category.req.CategoryClassEditReq;
import com.hxzy.controller.admin.category.req.CategoryClassReq;
import com.hxzy.controller.admin.category.resp.CategoryClassResp;
import com.hxzy.entity.CategoryClass;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @Author wy
 * @Description TODO
 * @Date 2023/7/12 11:13
 * @Version 1.0
 */
@Mapper
public interface CategoryClassConvert {
    CategoryClassConvert INSTANCE= Mappers.getMapper(CategoryClassConvert.class);

    CategoryClass convert(CategoryClassAddReq req);

    CategoryClass convert(CategoryClassEditReq req);

    CategoryClassResp convert(CategoryClass entity);
}
